import {AnnouncementList,SchoolInfo,SchoolInfoEdit,AnnouncementTitle,AnnouncementTitleDetail,AnnouncementTitleDetailEdit} from "../../types/requestTypes"
import request from "../request";
import {ResponseRET} from "../../types/responseTypes"

/**
 * 查询公告信息标题列表
 * @param name
 */

export const getAnnouncementList = (params:AnnouncementList):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_GGXX_LIST',params,true)


/**
 * 查询学校简介
 * @param name
 */

export const getSchoolInfo = (params:SchoolInfo):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_XXJJ',params,true)

/**
 * 编辑学校简介
 * @param name
 */

export const UpdataSchoolInfoEdit = (params:SchoolInfoEdit):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/ET_XXJJ',params,true)


/**
 * 查询公告信息标题列表
 * @param name
 */

export const getAnnouncementTitleList = (params:AnnouncementTitle):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_GGXX_BT_LIST',params,true)

/**
 * 查询公告信息标题列表详情
 * @param name
 */

export const getAnnouncementTitleDetail = (params:AnnouncementTitleDetail):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_GGXX_ID',params,true)

/**
 * 编辑公告信息文本
 * @param name
 */

export const UpdataAnnouncementTitleDetailEdit = (params:AnnouncementTitleDetailEdit):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/ET_GGXX_TXT_NEW',params,true)